package com.zpark.se.thread;

/**
 * @PackageName: com.zpark.se.thread
 * @ClassName: Demo02
 * @Description:
 * @author: RZS
 * @date: 2024/11/25  11:10
 */
public class Demo02 {
    public static void main(String[] args) {
        // 创建ThreadDemo01类对象
        ThreadDemo01 td = new ThreadDemo01();
        // 创建线程
        Thread t = new Thread(td);
        // 启动线程
        t.start();

        // 循环10万次
        for (int i = 0; i < 100000; i++) {
            System.out.println("线程main执行了" + (i+1) + "次");
        }
    }
}
